﻿namespace EasyToolkit.ModelDefinition
{
    class ModelProperty : IModelProperty
    {
        public string Name
        { get; protected set; }

        public string Description
        { get; protected set; }

        public ModelProperty(string name, string description)
        {
            if (string.IsNullOrEmpty(name))
                throw new EasyToolkitException("'Name' cannot be null or empty");

            Name = name;
            Description = description;
        }
    }
}
